package com.wgchao.identityrightsmanagement.infrastructure.convert;

import com.wgchao.identityrightsmanagement.domain.organization.model.AccountOffice;
import com.wgchao.identityrightsmanagement.infrastructure.jpa.entity.SysBaseAccountOffice;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

/**
 * @ClassName: AccountOfficeConvert
 * @author: wgchao
 * @createTime: 2020/6/17 4:28 PM
 * @Description: TODO
 */
@Component
public class AccountOfficeConvert {

    public SysBaseAccountOffice convert(AccountOffice accountOffice) {
        SysBaseAccountOffice sysBaseAccountOffice = new SysBaseAccountOffice();
        BeanUtils.copyProperties(accountOffice, sysBaseAccountOffice);
        return sysBaseAccountOffice;
    }

}
